if cond:
    x = a
else:
    x = b